import { ModelBackend, ModelBackendConfig } from "./base";
import { HumanBackend } from "./human";
import { AgentBackend } from "./agent";

export class ModelBackendFactory {
    static create(config: ModelBackendConfig): ModelBackend {
        if (config.modelMaker === "Human") {
            return new HumanBackend(config);
        } else {
            return new AgentBackend(config);
        }
    }
}
